﻿using System;
using System.Collections.Generic;
using System.Web;
using SharpHsql;

namespace NFinal.Compile
{
    /// <summary>
    /// 标准T-SQL97解析类
    /// </summary>
    public class SqlParserEx
    {
        public void Parse(string sql)
        {
            SharpHsql.Tokenizer tokenizer = new Tokenizer(sql);
            Database database=new Database("db");
            Channel channel = database.Connect("user", "");
            SharpHsql.Parser parser = new Parser(database, tokenizer, channel);
            parser.ParseSelect();
            Result result= parser.ProcessSelect();
            
        }
    }
}